#include <stdio.h>
#define MAXN 20

void strmcpy( char *t, int m, char *s );
void ReadString( char s[] ); /* 由裁判实现，略去不表 */

int main()
{
    char t[MAXN], s[MAXN];
    int m;

    scanf("%d\n", &m);
    ReadString(t);
    strmcpy( t, m, s );
    printf("%s\n", s);

    return 0;
}

/* 你的代码将被嵌在这里 */

void strmcpy( char *t, int m, char *s ) {
    int i = 0;
    char *tp, *sp;
    tp = t + m - 1, sp = s;
    for ( i = m; i <= MAXN; i++ ) {
        *sp = *tp;
        tp++;
        sp++;
    }
    *sp = '\0';
}

void ReadString( char s[] ) {
    gets(s);
}